using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName = "Scriptable/WeaponEffectBagSO")]
public class WeaponEffectBagSO : ScriptableObject {
    public List<uint> EffectIdList;

    public void AddEffect(uint effectID) {
        for (int i = 0; i < EffectIdList.Count; ++i) {
            if (EffectIdList[i] == default) {
                EffectIdList[i] = effectID;
                return;
            }
        }
    }
    
    public void InsertEffect(int index,uint effectID) {
        EffectIdList[index] = effectID;
    }

    public void RemoveEffect(int index) {
        EffectIdList[index] = default;
    }
}
